/*
 * @Author: your name
 * @Date: 2022-04-14 19:12:12
 * @LastEditTime: 2022-04-16 22:25:58
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue-admin-template\src\api\website.js
 */
import request from '@/utils/request'

export function findAllWebsites() {
  return request({
    url: '/website/findAllWebsites',
    method: 'get',
  })
}
export function findWebsiteById(data) {
  return request({
    url: '/website/findWebsiteById',
    method: 'post',
    data
  })
}
export function createWebsite(data) {
  return request({
    url: '/website/createWebsite',
    method: 'post',
    data
  })
}
export function publicWebsite(data) {
  return request({
    url: '/website/publicWebsite',
    method: 'post',
    data
  })
}
export function deleteWebsiteById(data) {
  return request({
    url: '/website/deleteWebsiteById',
    method: 'delete',
    data
  })
}
export function updateWebsiteById(data) {
  return request({
    url: '/website/updateWebsiteById',
    method: 'post',
    data
  })
}